<?php

use Illuminate\Http\Request;
use Illuminate\Routing\Router;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('goods/list', 'GoodsController@list');
Route::get('goods/detail', 'GoodsController@detail');
Route::get('category/list', 'CateController@list');



Route::post('cart/add', 'CartController@add');
Route::post('cart/update', 'CartController@update');
Route::post('cart/delete', 'CartController@delete');
Route::post('cart/list', 'CartController@list');

